<?php
header("content-type:text/html;charset=utf8");
$title=$_GET['title'];
$content=$_GET['content'];
$dbh=new PDO('mysql:host=localhost;dbname=gaofei','root','root');
$sql="insert into memberadd (title,content) VALUES ('$title','$content')";
//echo $sql;
$arr=$dbh->exec($sql);
if($arr)
{
    header("location:list.php");
}
else{
    echo "添加失败";
}